public class BixolonCustomerDisplay
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BRIGHTNESS_100
Brightness 100%
Constant value: 0x04 |
static int |
BRIGHTNESS_20
Brightness 20%
Constant value: 0x01 |
static int |
BRIGHTNESS_40
Brightness 40%
Constant value: 0x02 |
static int |
BRIGHTNESS_60
Brightness 60%
Constant value: 0x03 |
static int |
CP_1250_CENTRAL_EUROPEAN_WINDOWS
WPC-1250(Central European Windows code) character font table.
|
static int |
CP_1251_CYRILLIC_WINDOWS
WPC-1251(Cyrillic Windows code) character font table.
|
static int |
CP_1252_WESTERN_EUROPEAN_WINDOWS
WPC-1252(Western European Windows code) character font table.
|
static int |
CP_1253_GREEK_WINDOWS
WPC-1253(Greek Windows code) character font table.
|
static int |
CP_437_STANDARD_EUROPEAN
PC-437(Standard European) character font table.
|
static int |
CP_737_GREEK
PC737(Greek) character font table.
|
static int |
CP_775_BALTIC
PC775(Baltic) character font table.
|
static int |
CP_850_MULTILINGUAL
PC-850(Multilingual) character font table.
|
static int |
CP_852_LATIN2_SLAVONIC
PC-852(Latin-2: Slavonic) character font table.
|
static int |
CP_857_TURKISH
PC-857(Turkish) character font table.
|
static int |
CP_858_EURO
PC-858(Euro) character font table.
|
static int |
CP_860_PORTUGUESE
PC-860(Portuguese) character font table.
|
static int |
CP_863_CANADIAN_FRENCH
PC-863(Canadian French) character font table.
|
static int |
CP_864_ARABIC
PC-864(Arabic) character font table.
|
static int |
CP_865_NORDIC
PC-865(Nordic) character font table.
|
static int |
CP_866_CYRILLIC2_RUSSIAN
PC-866(Cyrillic-2: Russian) character font table.
|
static int |
CP_JAPANESE_KATAKANA
JIS(Japanese Katakana) character font table.
|
static boolean |
D |
static int |
INTERNATIONAL_CODE_CHINA
China international code set.
|
static int |
INTERNATIONAL_CODE_DENMARK1
Denmark I international code set.
|
static int |
INTERNATIONAL_CODE_DENMARK2
Denmark II international code set.
|
static int |
INTERNATIONAL_CODE_FRANCE
France international code set.
|
static int |
INTERNATIONAL_CODE_GERMANY
Germany international code set.
|
static int |
INTERNATIONAL_CODE_ITALY
Italy international code set.
|
static int |
INTERNATIONAL_CODE_JAPAN
Japan international code set.
|
static int |
INTERNATIONAL_CODE_KOREA
Korea international code set.
|
static int |
INTERNATIONAL_CODE_LATIN_AMERICA
Latin America international code set.
|
static int |
INTERNATIONAL_CODE_NORWAY
Norway international code set.
|
static int |
INTERNATIONAL_CODE_SLOVENIA_CROATIA
Slovenia/Croatia international code set.
|
static int |
INTERNATIONAL_CODE_SPAIN1
Spain international code set.
|
static int |
INTERNATIONAL_CODE_SPAIN2
Spain 2 international code set.
|
static int |
INTERNATIONAL_CODE_SWEDEN
Sweden international code set.
|
static int |
INTERNATIONAL_CODE_UK
U.K international code set.
|
static int |
INTERNATIONAL_CODE_USA
U.S.A international code set.
|
static int |
LOWER_LINE
Lower line.
|
static int |
MODE_HORIZONTAL
Horizontal scroll mode.
|
static int |
MODE_OVERWRITE
Overwrite mode.
|
static int |
MODE_VERTICAL
Vertical scroll mode.
|
static int |
POSITION_BOTTOM
Move the cursor to the bottom position.
|
static int |
POSITION_DOWN
Move the cursor down one line.
|
static int |
POSITION_HOME
Move the cursor to the left-most position on the upper line.
|
static int |
POSITION_LEFT
Move the cursor one character position to the left.
|
static int |
POSITION_LEFT_MOST
Move the cursor to the left-most position on the current line.
|
static int |
POSITION_RIGHT
Move the cursor to the right.
|
static int |
POSITION_RIGHT_MOST
Move the cursor to the right-most position on the current line.
|
static int |
POSITION_UP
Move the cursor up one line.
|
static int |
UPPER_LINE
Upper line.
|
| Constructor and Description |
|---|
BixolonCustomerDisplay(android.content.Context context)
Create BixolonCustomerDisplay instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearImage(boolean isAll,
int imageNumber)
Delete the image saved in the image buffer of BCD-2000/3000.
|
void |
clearLine()
Clear the line containing the cursor.
|
void |
clearLineBlinking(int line)
Clear line blinking.
|
void |
clearScreen()
Clear all the displayed characters.
|
void |
close()
Clear the connection with the device.
|
void |
displayImage(int imageNumber,
int xPos,
int yPos)
Print the image saved in the image buffer of BCD-2000/3000.
|
void |
displayTime()
Display the time counter at the right side of the bottom line.
|
void |
endMacroDefinition()
End a macro definition.
|
void |
executeDefinedMacro(int timeInterval,
int executionInterval)
Execute the process defined as a macro.
|
void |
executeSelfTest()
A series of self-test is displayed.
|
void |
initialize()
Reset the various display settings to the initial values.
|
void |
moveCursor(int position)
Move cursor to the position.
|
void |
moveCursor(int x,
int y)
Move the cursor to the x line on the y column.
|
boolean |
open()
Establish USB connection to the device.
|
void |
selectPeripheralDevices(boolean enable)
Select peripheral device.
|
void |
setBlinkInterval(int interval)
Set or cancel the blink interval of the display screen.
|
void |
setCharacterFontTable(int fontTable)
Select character font table.
|
void |
setCursor(boolean on)
Set cursor on or off.
|
void |
setDimmingControl(int brightness)
Set the brightness of the fluorescent character display tube.
|
void |
setInternationalCodeSet(int codeSet)
Set international code set.
|
void |
setLineBlinking(int line)
Set line blinking.
|
void |
setReversedCharacterMode(boolean enable)
Select or cancel reverse display of the characters after invocation this method.
|
void |
setScrollMode(int mode)
Select scroll mode as the screen display mode.
|
void |
setTime(int hour,
int minute)
The counter time is set and displayed at the right side of the bottom line.
|
void |
startMacroDefinition()
Start a macro definition.
|
void |
storeImage(android.graphics.Bitmap bitmap,
int width,
int height,
int imageNumber)
Save the image data in the image buffer of BCD-2000/3000.
|
void |
storeImageFile(java.lang.String filename,
int width,
int height,
int imageNumber)
Save the image data in the image buffer of BCD-2000/3000.
|
void |
writeString(java.lang.String text)
Set the string display mode, write string to current position.
|
void |
writeString(java.lang.String text,
int line)
Set the string display mode, write string to upper or lower line.
|
public static final boolean D
public static final int POSITION_LEFT
moveCursor(int)
,
Constant Field Valuespublic static final int POSITION_RIGHT
moveCursor(int)
,
Constant Field Valuespublic static final int POSITION_DOWN
moveCursor(int)
,
Constant Field Valuespublic static final int POSITION_UP
moveCursor(int)
,
Constant Field Valuespublic static final int POSITION_HOME
moveCursor(int)
,
Constant Field Valuespublic static final int POSITION_LEFT_MOST
moveCursor(int)
,
Constant Field Valuespublic static final int POSITION_RIGHT_MOST
moveCursor(int)
,
Constant Field Valuespublic static final int POSITION_BOTTOM
moveCursor(int)
,
Constant Field Valuespublic static final int INTERNATIONAL_CODE_USA
public static final int INTERNATIONAL_CODE_FRANCE
public static final int INTERNATIONAL_CODE_GERMANY
public static final int INTERNATIONAL_CODE_UK
public static final int INTERNATIONAL_CODE_DENMARK1
public static final int INTERNATIONAL_CODE_SWEDEN
public static final int INTERNATIONAL_CODE_ITALY
public static final int INTERNATIONAL_CODE_SPAIN1
public static final int INTERNATIONAL_CODE_JAPAN
public static final int INTERNATIONAL_CODE_NORWAY
public static final int INTERNATIONAL_CODE_DENMARK2
public static final int INTERNATIONAL_CODE_SPAIN2
public static final int INTERNATIONAL_CODE_LATIN_AMERICA
public static final int INTERNATIONAL_CODE_KOREA
public static final int INTERNATIONAL_CODE_SLOVENIA_CROATIA
public static final int INTERNATIONAL_CODE_CHINA
public static final int CP_437_STANDARD_EUROPEAN
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_JAPANESE_KATAKANA
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_850_MULTILINGUAL
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_860_PORTUGUESE
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_863_CANADIAN_FRENCH
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_865_NORDIC
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_737_GREEK
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_1250_CENTRAL_EUROPEAN_WINDOWS
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_1251_CYRILLIC_WINDOWS
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_1252_WESTERN_EUROPEAN_WINDOWS
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_866_CYRILLIC2_RUSSIAN
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_852_LATIN2_SLAVONIC
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_858_EURO
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_775_BALTIC
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_1253_GREEK_WINDOWS
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_857_TURKISH
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int CP_864_ARABIC
setCharacterFontTable(int)
,
Constant Field Valuespublic static final int MODE_OVERWRITE
setScrollMode(int)
,
Constant Field Valuespublic static final int MODE_VERTICAL
setScrollMode(int)
,
Constant Field Valuespublic static final int MODE_HORIZONTAL
setScrollMode(int)
,
Constant Field Valuespublic static final int BRIGHTNESS_20
setDimmingControl(int)
,
Constant Field Valuespublic static final int BRIGHTNESS_40
setDimmingControl(int)
,
Constant Field Valuespublic static final int BRIGHTNESS_60
setDimmingControl(int)
,
Constant Field Valuespublic static final int BRIGHTNESS_100
setDimmingControl(int)
,
Constant Field Valuespublic static final int UPPER_LINE
public static final int LOWER_LINE
public BixolonCustomerDisplay(android.content.Context context)
context - UI context to use the system service.public boolean open()
public void close()
public void moveCursor(int position)
position - position to move cursor.POSITION_LEFT
,
POSITION_RIGHT
,
POSITION_DOWN
,
POSITION_UP
,
POSITION_HOME
,
POSITION_LEFT_MOST
,
POSITION_RIGHT_MOST
,
POSITION_BOTTOM
public void moveCursor(int x,
int y)
x - line of the positiony - column of the positionpublic void clearScreen()
public void clearLine()
public void initialize()
public void selectPeripheralDevices(boolean enable)
enable - if true enable display, otherwise disable display.public void setInternationalCodeSet(int codeSet)
codeSet - code set to set.INTERNATIONAL_CODE_USA
,
INTERNATIONAL_CODE_FRANCE
,
INTERNATIONAL_CODE_GERMANY
,
INTERNATIONAL_CODE_UK
,
INTERNATIONAL_CODE_DENMARK1
,
INTERNATIONAL_CODE_SWEDEN
,
INTERNATIONAL_CODE_ITALY
,
INTERNATIONAL_CODE_JAPAN
,
INTERNATIONAL_CODE_SPAIN1
,
INTERNATIONAL_CODE_NORWAY
,
INTERNATIONAL_CODE_DENMARK2
,
INTERNATIONAL_CODE_SPAIN2
,
INTERNATIONAL_CODE_LATIN_AMERICA
,
INTERNATIONAL_CODE_KOREA
,
INTERNATIONAL_CODE_SLOVENIA_CROATIA
,
INTERNATIONAL_CODE_CHINA
public void setCharacterFontTable(int fontTable)
fontTable - font table to set.CP_437_STANDARD_EUROPEAN
,
CP_JAPANESE_KATAKANA
,
CP_850_MULTILINGUAL
,
CP_860_PORTUGUESE
,
CP_863_CANADIAN_FRENCH
,
CP_865_NORDIC
,
CP_737_GREEK
,
CP_1250_CENTRAL_EUROPEAN_WINDOWS
,
CP_1251_CYRILLIC_WINDOWS
,
CP_1252_WESTERN_EUROPEAN_WINDOWS
,
CP_866_CYRILLIC2_RUSSIAN
,
CP_852_LATIN2_SLAVONIC
,
CP_858_EURO
,
CP_775_BALTIC
,
CP_1253_GREEK_WINDOWS
,
CP_857_TURKISH
,
CP_864_ARABIC
public void setScrollMode(int mode)
mode - vertical or horizontal.MODE_OVERWRITE
,
MODE_VERTICAL
,
MODE_HORIZONTAL
public void setBlinkInterval(int interval)
interval - the blink interval(0 to 255). if 0 cancel blinking.public void setTime(int hour,
int minute)
hour - hours to setminute - minutes to setpublic void displayTime()
public void setDimmingControl(int brightness)
brightness - percentage of brightnessBRIGHTNESS_20
,
BRIGHTNESS_40
,
BRIGHTNESS_60
,
BRIGHTNESS_100 (default)
public void setReversedCharacterMode(boolean enable)
enable - if true reverse characters are selected, otherwise canceled.public void executeSelfTest()
public void startMacroDefinition()
public void endMacroDefinition()
public void executeDefinedMacro(int timeInterval,
int executionInterval)
timeInterval - the time interval for displaying characters in units [timeInterval * 20 milliseconds] of when a macro is executed. (0 ~ 255)executionInterval - the interval of execution (0 ~ 255)public void setCursor(boolean on)
on - if true cursor is turn on, otherwise turn off.public void setLineBlinking(int line)
line - upper line or lower line.UPPER_LINE
,
LOWER_LINE
public void clearLineBlinking(int line)
line - upper line or lower line.UPPER_LINE
,
LOWER_LINE
public void writeString(java.lang.String text,
int line)
text - string to write.line - upper line or lower line.UPPER_LINE
,
LOWER_LINE
public void writeString(java.lang.String text)
text - string to write.public void storeImage(android.graphics.Bitmap bitmap,
int width,
int height,
int imageNumber)
throws java.lang.Exception
bitmap - Bitmap image.width - Width of image (1 ~ 160).height - Height of image (1 ~ 32).imageNumber - Number of the image data to be saved (1 ~ 5).java.lang.Exceptionpublic void storeImageFile(java.lang.String filename,
int width,
int height,
int imageNumber)
throws java.lang.Exception
filename - Path to image file.width - Width of image (1 ~ 160).height - Height of image (1 ~ 32).imageNumber - Number of the image data to be saved (1 ~ 5).java.lang.Exceptionpublic void displayImage(int imageNumber,
int xPos,
int yPos)
imageNumber - Number of the image data to be printed (1 ~ 5).xPos - X coordinate to output image.yPos - Y coordinate to output image.public void clearImage(boolean isAll,
int imageNumber)
isAll - Select image buffer clear mode.imageNumber - The number of the image data to be deleted (1 ~ 5).